import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '类型',
    align: "center",
    dataIndex: 'model'
  },
  {
    title: '数量',
    align: "center",
    dataIndex: 'number'
  },
  {
    title: '单价',
    align: "center",
    dataIndex: 'unitPrice'
  },
  {
    title: '金额',
    align: "center",
    dataIndex: 'amount'
  },
  {
    title: '所属公司',
    align: "center",
    dataIndex: 'companyId'
  },
  {
    title: '1为进货2为销货',
    align: "center",
    dataIndex: 'orstate'
  },
  {
    title: '交易方',
    align: "center",
    dataIndex: 'traner'
  },
  {
    title: '是否支付',
    align: "center",
    dataIndex: 'isPay'
  },
  {
    title: '支付方式',
    align: "center",
    dataIndex: 'paymentMethod'
  },
  {
    title: '批次号',
    align: "center",
    dataIndex: 'id'
  },
];

// 高级查询数据
export const superQuerySchema = {
  model: {title: '类型',order: 0,view: 'text', type: 'string',},
  number: {title: '数量',order: 1,view: 'text', type: 'string',},
  unitPrice: {title: '单价',order: 2,view: 'text', type: 'string',},
  amount: {title: '金额',order: 3,view: 'text', type: 'string',},
  companyId: {title: '所属公司',order: 4,view: 'text', type: 'string',},
  orstate: {title: '1为进货2为销货',order: 5,view: 'text', type: 'string',},
  traner: {title: '交易方',order: 6,view: 'text', type: 'string',},
  isPay: {title: '是否支付',order: 7,view: 'text', type: 'string',},
  paymentMethod: {title: '支付方式',order: 8,view: 'text', type: 'string',},
  id: {title: '批次号',order: 9,view: 'text', type: 'string',},
};
